<%@ page import="entity.Teacher810" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: wang'ze'liang
  Date: 2021/8/10
  Time: 21:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<table border="1" cellspacing="0">
    <tr>
        <td>Id</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>删除</td>
    </tr>

    <%
        ArrayList<Teacher810> arrayList =
                (ArrayList<Teacher810>)request.getAttribute("Array") ;
        for (Teacher810 t810 : arrayList){
    %>


    <tr>
        <td><%=t810.getId()%></td>

        <td><%=t810.getName()%></td>
        <td><%=t810.getAge()%></td>
        <td><a href="<%=request.getContextPath()%>/Hihi?method=deleteById&id=<%=t810.getId()%>">删除</a> </td>

    </tr>
    <%
        }
    %>
</table>
    <a href="<%=request.getContextPath()%>/insert.jsp">添加</a>



</body>
</html>
